import 'package:flutter/material.dart';

 getLoadingWidget(BuildContext context){
  return Container(
    //错误页面中心可以自己调整
    padding: EdgeInsets.fromLTRB(0, 0, 0, 100),
    color: Colors.black12,
    width: double.infinity,
    height: double.infinity,
    child: Center(
      child:
      // 圆形进度条
      new CircularProgressIndicator(
        strokeWidth: 4.0,
        backgroundColor: Colors.black12,
        // value: 0.2,
        valueColor: new AlwaysStoppedAnimation<Color>(Theme.of(context).primaryColor),
      ),
    ),
  );
}